package day6;

/**
 * @author oldliu
 * @since 1.0
 */
public class Phone {
    String brand;
    int price;
    String color;
    Battery b;//=new Battery();//电池,不会自动创建

    public void show(){

        System.out.println("这部手机是："+brand);
        System.out.println("颜色是："+color);
        System.out.println("价格是："+price);
        System.out.println("电池是"+b.brand+",容量是"+b.cap+"毫安");
    }
}
